<if condition="!empty($_GET['appId']) and !empty($_GET['moduleId'])" >
    <volist id="item" name="actionList">
        <div class="unit">
            <input <?php echo in_array($key, $groupActionList) ? "checked" : "" ?> type="checkbox" name="groupActionId[]" value="{$key}"/>{$item}
        </div>
    </volist>

    <elseif condition="!empty($_GET['appId'])" />
    <div class="unit">
        <label>Module:</label>
        <select name="moduleId" onchange="selectModule_action('#setActionAction')">
            <option value="">Choose</option>
            <volist id="item" name="moduleList">
                <option value="{$key}" <?php echo in_array($key, $selectModuleId) ? "selected" : "" ?>>{$item}</option>
            </volist>
        </select>
    </div>

    <div id="actionSelectBox">
        <volist id="item" name="actionList">
            <div class="unit">
                <input <?php echo in_array($key, $groupActionList) ? "checked" : "" ?> type="checkbox" name="groupActionId[]" value="{$key}"/>{$item}
            </div>
        </volist>
    </div>

    <else />
    <form id="setActionAction" method="post" action="__URL__/setAction" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden" name="groupId" VALUE="{$Think.get.groupId}" />
        <div class="pageFormContent" layoutH="100" layoutType="dialog">
            <div class="unit">
                <label>Applicaion:</label>
                <select name="appId" onchange="selectApp_action('#setActionAction')">
                    <option value="">Choose</option>
                    <volist id="item" name="appList">
                        <option value="{$key}" <?php echo in_array($key, $selectAppId) ? "selected" : "" ?>>{$item}</option>
                    </volist>
                </select>
            </div>
            <div id="moduleSelectBox">
                <div class="unit">
                    <label>Module:</label>
                    <select name="moduleId" onchange="selectModule_action('#setActionAction')">
                        <option value="">Choose</option>
                        <volist id="item" name="moduleList">
                            <option value="{$key}" <?php echo in_array($key, $selectModuleId) ? "selected" : "" ?>>{$item}</option>
                        </volist>
                    </select>
                </div>

                <div id="actionSelectBox">
                    <volist id="item" name="actionList">
                        <div class="unit">
                            <input <?php echo in_array($key, $groupActionList) ? "checked" : "" ?> type="checkbox" name="groupActionId[]" value="{$key}"/>{$item}
                        </div>
                    </volist>
                </div>
            </div>
        </div>
        <div class="formBar">
            <label style="float:left"><input type="checkbox" class="checkboxCtrl" group="groupActionId[]" />{$Think.lang._COMMON_SELECTALL_}</label>
            <ul>
                <li><div class="button"><div class="buttonContent"><button type="button" class="checkboxCtrl" group="groupActionId[]" selectType="invert">{$Think.lang._COMMON_SELECTOTHERS_}</button></div></div></li>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">{$Think.lang._COMMON_SUBMIT_}</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" onclick="$.pdialog.closeCurrent()">{$Think.lang._COMMON_CANCEL_}</button></div></div></li>
            </ul>
        </div>
    </form>
</if>
